package com.itguigu.Dao.impl;

import com.itguigu.Dao.BookDao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Repository
public class BookDaoImpl implements BookDao {
    @Override
    public String findBook(int id) {
        if(id==100)
        {
            return "itcast2";
        }else
        {
            return "0000";
        }
    }
}
